/**
 * 
 */
package com.nextive.interview.service.impl;

import android.content.Context;
import android.database.Cursor;

import com.nextive.interview.dao.UserInfoDao;
import com.nextive.interview.dao.sqlite.SqLiteUserInfoDao;
import com.nextive.interview.service.UserInfoService;

/**
 * @author Cesar Roman
 *
 */
public class UserInfoServiceImpl implements UserInfoService {

	private UserInfoDao userInfoDao;
	
	public UserInfoServiceImpl(Context context) {
		
		this.userInfoDao = new SqLiteUserInfoDao(context);
		
	}
	
	@Override
	public boolean isUserFirstAccess() {
		
		Cursor cursor = userInfoDao.getUserFirstAccess();
		return Boolean.parseBoolean(cursor.getString(cursor.getColumnIndex(
				UserInfoDao.HAS_ACCESSED_KEY)));
		
	}

	@Override
	public void saveUserInfo(String name, String email, String recipient,
			String option) {
		// TODO Auto-generated method stub
		
	}

}
